<!DOCTYPE html>
<html lang="en">
<head>
 <meta charset="UTF-8">
 <meta name="viewport"
  content="width=device-width, initial-scale=1.0, minimum-scale=1,maximum-scale=1,user-scalable=no">
 <meta http-equiv="X-UA-Compatible" content="ie=edge">
 <title data-ch="恐龙探险" data-en="Dinosaur Adventure" class="document_title">恐龙探险</title>
 <script src="js/jquery-3.3.1.min.js"></script>
 <script src="js/common.js"></script>
 <script src="js/rem.js"></script>
 <script src="js/layer.js"></script>
 <script type="text/javascript">
  isLogin();
 </script>
 <link rel="stylesheet" href="css/common.css">
 <link rel="stylesheet" type="text/css" href="css/css.css">
</head>
<body>
<!--头部-->
<div class="jui_top_bar">
    <div class="jui_top_left"></div>
    <div class="jui_top_middle" data-ch="设置" data-en="Settings">设置</div>
</div>
<!--头部end-->
<!--主体-->
<div class="jui_main jui_flex_col_center">
     <div class="jui_h30"></div>
     <a href="language.html" class="set_btn" data-ch="语言设定" data-en="Select language">语言设定</a>
     <a href="#" class="set_btn jui_bg_red" data-ch="退出" data-en="Logout">退出</a>
</div>
<!--主体end-->
<!-- 固定底部 -->
<div class="jui_footer">
     <a href="index.html" class="jui_foot_list">
         <img class="jui_foot_icon" src="icons/nav_icon01.png">
         <p data-ch="恐龙市场" data-en="Market">恐龙市场</p>
     </a>
     <a href="weishi.html" class="jui_foot_list">
         <img class="jui_foot_icon" src="icons/nav_icon02.png">
         <p data-ch="喂食挂卖" data-en="Feed & sell">喂食挂卖</p>
     </a>
     <a href="my_konglong.html" class="jui_foot_list">
         <img class="jui_foot_icon" src="icons/nav_icon03.png">
         <p data-ch="我的恐龙" data-en="My Dino">我的恐龙</p>
     </a>
     <a href="ewm.html" class="jui_foot_list">
         <img class="jui_foot_icon" src="icons/nav_icon04.png">
         <p data-ch="二维码" data-en="QR code">二维码</p>
     </a>
     <a href="set.html" class="jui_foot_list jui_hover">
         <img class="jui_foot_icon" src="icons/nav_icon05.png">
         <p data-ch="设置" data-en="Settings">设置</p>
     </a>
</div>
<!-- 固定底部end -->

<script>
 $(document).ready(function(){ 
 	language();
 	if(location.href.indexOf("#reloaded")==-1){
        location.href=location.href+"#reloaded";
        location.reload();
    }
 	// var type = 1
  $(".jui_bg_red").click(function(){ // 退出时清除localStorage中的数据
  var language_type = localStorage.getItem("language_type");
   box_timer(language_type == 1 ? "退出成功，请重新登录" : "Sign out successfully, please sign in again")
   localStorage.removeItem("u_id");
   localStorage.removeItem("token")
   localStorage.removeItem("isRenzheng")
   localStorage.removeItem("isBank");
   setTimeout(function () {
    window.location.href = 'login.html';
   }, 1500);
  })
  
  
  //console.log(type === 1)
  //if(type == 1){
  //	// window.location.href = 'set.html';
  //	type = 2
  //}
  //console.log(type == 1)
  //window.location.href = 'set.html'
  documentName()
 });
</script>
</body>
</html>